import request from '@/api/myRequest'

// 店铺列表数据
function storemanageIndex() {
  return request({
    url: '/storemanage/storemanageIndex',
    method: 'GET'
  })
}

// 条件查询
function listByMap(data) {
  return request({
    url: '/storemanage/listByMap',
    method: 'POST',
    data
  })
}

// 根据ID获取店铺信息
function queryById(data) {
  return request({
    url: '/storemanage/queryById',
    method: 'POST',
    data
  })
}

// 更改店铺状态
function updateById(data) {
  return request({
    url: '/storemanage/updateById',
    method: 'POST',
    data
  })
}

export default { storemanageIndex, listByMap, queryById, updateById }
